import { getHttp } from "../common/http";
export async function getContent(chapterId: string, type: string) {
  const http = getHttp();
  return await http(`course-content/${chapterId}/${type}`, {
    method: "get",
  });
}

export async function updateStudyTime(chapterId: string) {
  const http = getHttp();
  return await http(`user-chapter/update-time/${chapterId}`, {
    method: "get",
  });
}
